var netTool
var apiPath = 'capi/V2/driverInfo/ffOilPoint/'

function DriverImage(_netTool) {
	netTool = _netTool
	
	this.list = function(data, fn) {
		netTool.getAjaxUrlValueBackground(apiPath + 'list', {
			user_id: uni.getStorageSync('user_id'),
		}, function(res) {
			typeof fn == 'function' && fn(res);
		})
	}

	this.update = function(data, fn) {
		netTool.getAjaxUrlValueBackground(apiPath + 'update', {
			...data,
		}, function(res) {
			typeof fn == 'function' && fn(res);
		})
	}
	this.save = function(data, fn) {
		netTool.getAjaxUrlValueBackground(apiPath + 'save', {
			...data,
			epprove_status:0
		}, function(res) {
			typeof fn == 'function' && fn(res);
		})
	}

}
module.exports = DriverImage;
